cmake_minimum_required(VERSION 3.10)
project(task6_PNP)

set(CMAKE_CXX_STANDARD 14)

find_package(OpenCV 4 REQUIRED)

add_library(SolvePnP SHARED SolvePnP.cpp)
target_include_directories(SolvePnP PUBLIC include)
target_include_directories(SolvePnP PUBLIC ${OpenCV_INCLUDE_DIRS})

add_executable(task6_PNP main.cpp)
target_link_libraries(SolvePnP ${OpenCV_LIBS})
target_link_libraries(task6_PNP SolvePnP)
